package com.pl.myshop.business.profile.feign;

import com.pl.myshop.business.profile.feign.fallback.ProfileFeignFallback;
import com.pl.myshop.configuration.feign.config.FeignRequestConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Auther: pl
 * @Date: 
 * @Description:
 */
@FeignClient(value = "business-profile", path = "profile", configuration = FeignRequestConfiguration.class, fallback = ProfileFeignFallback.class)
public interface ProfileFeign  {
    /** 
     * @MethodName: userInfo
     * @Description: feign是伪http客户端，返回的不是对象而是json，用string接
     * @Param: [username]
     * @Return: java.lang.String
     * @Author: pl
     * @Date: 8:34
    **/
    @GetMapping(value = "getUserProfile/{userName}")
    String getUserProfile(@PathVariable String userName);
}
